﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

//using System.Data.Entity;

namespace G28BS.Models
{
    public class FinishedGame
    {
        [Key]
        [DatabaseGeneratedAttribute(DatabaseGeneratedOption.Identity)]

        public int finishedGameId { get; set; }

        // ; separated string of ids (SQL/Entity does not support arrays/enumarables)
        public string playerUserIds { get; set; }
        public List<UserProfile> playerUserProfiles { get; set; }
        
        public int gameTypeGameID { get; set; }
        //[ForeignKey("gameTypeGameID")]
        public Game gameType { get; set; }
        
        // ; separated string og game result ids (SQL/Entity does not support arrays/enumarables)
        public string playerGameResultIds { get; set; }
        public List<GameResult> playerGameResults { get; set; }
        
        public DateTime gameEnded { get; set; }
    }
    
}